﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using KNXFramework.KNXObjects;

namespace WcfServiceLibrary1
{
    // NOTE: If you change the interface name "IObjectService" here, you must also update the reference to "IObjectService" in App.config.
    [ServiceContract(CallbackContract=typeof(IMyCallback), SessionMode=SessionMode.Required)]
    public interface IObjectService
    {
        [OperationContract]
        bool StartConnection();
        
        [OperationContract]
        void CloseConnection();

        [OperationContract]
        KNXObject ReadValue(string id);

        [OperationContract]        
        void WriteValue(string id, string value);

        [OperationContract]
        Dictionary<string, KNXObject> GetAllObjects();
    }
}
